// pages/product-issues/detail/index.js
// 获取应用实例
const app = getApp()
import {
    util,
    Toast,
    commonMixin
} from "../../../utils/util.js";
Page({
    behaviors: [commonMixin],
    data: {
        id:'',
    },
    onLoad(options) {
    //     this.setData({
    //         id:options.id
    //     })
    //    console.log(options)
    //    this.getData();
    },
    onShow() {

    },
    //获取活动数据
    getData() {
        wx.showLoading({
            title: '加载中...',
            mask: true
        });
        let userInfo = util.getUserInfo();
        util.http.get("applet/activity", {
            id:this.data.id
        }).then((res) => {
            if (res.data.code == 0) {
              

            } else {
                Toast(res.data.message);
            }
            wx.hideLoading();
        }).catch((err) => {
            wx.hideLoading();
            Toast('网络异常！刷新后重试！');
            
        })
    },
    onShareAppMessage() {
     
    },
})